<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>eventtype.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_events_eventtype.js.html">eventtype.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2010 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>/**
<a name="line16"></a> * @fileoverview Event Types.
<a name="line17"></a> *
<a name="line18"></a> * @author arv@google.com (Erik Arvidsson)
<a name="line19"></a> * @author mirkov@google.com (Mirko Visontai)
<a name="line20"></a> */
<a name="line21"></a>
<a name="line22"></a>
<a name="line23"></a>goog.provide(&#39;goog.events.EventType&#39;);
<a name="line24"></a>
<a name="line25"></a>goog.require(&#39;goog.userAgent&#39;);
<a name="line26"></a>
<a name="line27"></a>
<a name="line28"></a>/**
<a name="line29"></a> * Constants for event names.
<a name="line30"></a> * @enum {string}
<a name="line31"></a> */
<a name="line32"></a>goog.events.EventType = {
<a name="line33"></a>  // Mouse events
<a name="line34"></a>  CLICK: &#39;click&#39;,
<a name="line35"></a>  DBLCLICK: &#39;dblclick&#39;,
<a name="line36"></a>  MOUSEDOWN: &#39;mousedown&#39;,
<a name="line37"></a>  MOUSEUP: &#39;mouseup&#39;,
<a name="line38"></a>  MOUSEOVER: &#39;mouseover&#39;,
<a name="line39"></a>  MOUSEOUT: &#39;mouseout&#39;,
<a name="line40"></a>  MOUSEMOVE: &#39;mousemove&#39;,
<a name="line41"></a>  SELECTSTART: &#39;selectstart&#39;, // IE, Safari, Chrome
<a name="line42"></a>
<a name="line43"></a>  // Key events
<a name="line44"></a>  KEYPRESS: &#39;keypress&#39;,
<a name="line45"></a>  KEYDOWN: &#39;keydown&#39;,
<a name="line46"></a>  KEYUP: &#39;keyup&#39;,
<a name="line47"></a>
<a name="line48"></a>  // Focus
<a name="line49"></a>  BLUR: &#39;blur&#39;,
<a name="line50"></a>  FOCUS: &#39;focus&#39;,
<a name="line51"></a>  DEACTIVATE: &#39;deactivate&#39;, // IE only
<a name="line52"></a>  // NOTE: The following two events are not stable in cross-browser usage.
<a name="line53"></a>  //     WebKit and Opera implement DOMFocusIn/Out.
<a name="line54"></a>  //     IE implements focusin/out.
<a name="line55"></a>  //     Gecko implements neither see bug at
<a name="line56"></a>  //     https://bugzilla.mozilla.org/show_bug.cgi?id=396927.
<a name="line57"></a>  // The DOM Events Level 3 Draft deprecates DOMFocusIn in favor of focusin:
<a name="line58"></a>  //     http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html
<a name="line59"></a>  // You can use FOCUS in Capture phase until implementations converge.
<a name="line60"></a>  FOCUSIN: goog.userAgent.IE ? &#39;focusin&#39; : &#39;DOMFocusIn&#39;,
<a name="line61"></a>  FOCUSOUT: goog.userAgent.IE ? &#39;focusout&#39; : &#39;DOMFocusOut&#39;,
<a name="line62"></a>
<a name="line63"></a>  // Forms
<a name="line64"></a>  CHANGE: &#39;change&#39;,
<a name="line65"></a>  SELECT: &#39;select&#39;,
<a name="line66"></a>  SUBMIT: &#39;submit&#39;,
<a name="line67"></a>  INPUT: &#39;input&#39;,
<a name="line68"></a>  PROPERTYCHANGE: &#39;propertychange&#39;, // IE only
<a name="line69"></a>
<a name="line70"></a>  // Drag and drop
<a name="line71"></a>  DRAGSTART: &#39;dragstart&#39;,
<a name="line72"></a>  DRAG: &#39;drag&#39;,
<a name="line73"></a>  DRAGENTER: &#39;dragenter&#39;,
<a name="line74"></a>  DRAGOVER: &#39;dragover&#39;,
<a name="line75"></a>  DRAGLEAVE: &#39;dragleave&#39;,
<a name="line76"></a>  DROP: &#39;drop&#39;,
<a name="line77"></a>  DRAGEND: &#39;dragend&#39;,
<a name="line78"></a>
<a name="line79"></a>  // WebKit touch events.
<a name="line80"></a>  TOUCHSTART: &#39;touchstart&#39;,
<a name="line81"></a>  TOUCHMOVE: &#39;touchmove&#39;,
<a name="line82"></a>  TOUCHEND: &#39;touchend&#39;,
<a name="line83"></a>  TOUCHCANCEL: &#39;touchcancel&#39;,
<a name="line84"></a>
<a name="line85"></a>  // Misc
<a name="line86"></a>  BEFOREUNLOAD: &#39;beforeunload&#39;,
<a name="line87"></a>  CONTEXTMENU: &#39;contextmenu&#39;,
<a name="line88"></a>  ERROR: &#39;error&#39;,
<a name="line89"></a>  HELP: &#39;help&#39;,
<a name="line90"></a>  LOAD: &#39;load&#39;,
<a name="line91"></a>  LOSECAPTURE: &#39;losecapture&#39;,
<a name="line92"></a>  READYSTATECHANGE: &#39;readystatechange&#39;,
<a name="line93"></a>  RESIZE: &#39;resize&#39;,
<a name="line94"></a>  SCROLL: &#39;scroll&#39;,
<a name="line95"></a>  UNLOAD: &#39;unload&#39;,
<a name="line96"></a>
<a name="line97"></a>  // HTML 5 History events
<a name="line98"></a>  // See http://www.w3.org/TR/html5/history.html#event-definitions
<a name="line99"></a>  HASHCHANGE: &#39;hashchange&#39;,
<a name="line100"></a>  PAGEHIDE: &#39;pagehide&#39;,
<a name="line101"></a>  PAGESHOW: &#39;pageshow&#39;,
<a name="line102"></a>  POPSTATE: &#39;popstate&#39;,
<a name="line103"></a>
<a name="line104"></a>  // Copy and Paste
<a name="line105"></a>  // Support is limited. Make sure it works on your favorite browser
<a name="line106"></a>  // before using.
<a name="line107"></a>  // http://www.quirksmode.org/dom/events/cutcopypaste.html
<a name="line108"></a>  COPY: &#39;copy&#39;,
<a name="line109"></a>  PASTE: &#39;paste&#39;,
<a name="line110"></a>  CUT: &#39;cut&#39;,
<a name="line111"></a>  BEFORECOPY: &#39;beforecopy&#39;,
<a name="line112"></a>  BEFORECUT: &#39;beforecut&#39;,
<a name="line113"></a>  BEFOREPASTE: &#39;beforepaste&#39;,
<a name="line114"></a>
<a name="line115"></a>  // HTML5 online/offline events.
<a name="line116"></a>  // http://www.w3.org/TR/offline-webapps/#related
<a name="line117"></a>  ONLINE: &#39;online&#39;,
<a name="line118"></a>  OFFLINE: &#39;offline&#39;,
<a name="line119"></a>
<a name="line120"></a>  // HTML 5 worker events
<a name="line121"></a>  MESSAGE: &#39;message&#39;,
<a name="line122"></a>  CONNECT: &#39;connect&#39;,
<a name="line123"></a>
<a name="line124"></a>  // CSS transition events. Based on the browser support described at:
<a name="line125"></a>  // https://developer.mozilla.org/en/css/css_transitions#Browser_compatibility
<a name="line126"></a>  TRANSITIONEND: goog.userAgent.WEBKIT ? &#39;webkitTransitionEnd&#39; :
<a name="line127"></a>      (goog.userAgent.OPERA ? &#39;oTransitionEnd&#39; : &#39;transitionend&#39;),
<a name="line128"></a>
<a name="line129"></a>  // IE specific events.
<a name="line130"></a>  // See http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
<a name="line131"></a>  MSGESTURECHANGE: &#39;MSGestureChange&#39;,
<a name="line132"></a>  MSGESTUREEND: &#39;MSGestureEnd&#39;,
<a name="line133"></a>  MSGESTUREHOLD: &#39;MSGestureHold&#39;,
<a name="line134"></a>  MSGESTURESTART: &#39;MSGestureStart&#39;,
<a name="line135"></a>  MSGESTURETAP: &#39;MSGestureTap&#39;,
<a name="line136"></a>  MSGOTPOINTERCAPTURE: &#39;MSGotPointerCapture&#39;,
<a name="line137"></a>  MSINERTIASTART: &#39;MSInertiaStart&#39;,
<a name="line138"></a>  MSLOSTPOINTERCAPTURE: &#39;MSLostPointerCapture&#39;,
<a name="line139"></a>  MSPOINTERCANCEL: &#39;MSPointerCancel&#39;,
<a name="line140"></a>  MSPOINTERDOWN: &#39;MSPointerDown&#39;,
<a name="line141"></a>  MSPOINTERMOVE: &#39;MSPointerMove&#39;,
<a name="line142"></a>  MSPOINTEROVER: &#39;MSPointerOver&#39;,
<a name="line143"></a>  MSPOINTEROUT: &#39;MSPointerOut&#39;,
<a name="line144"></a>  MSPOINTERUP: &#39;MSPointerUp&#39;,
<a name="line145"></a>
<a name="line146"></a>  // Native IMEs/input tools events.
<a name="line147"></a>  TEXTINPUT: &#39;textinput&#39;,
<a name="line148"></a>  COMPOSITIONSTART: &#39;compositionstart&#39;,
<a name="line149"></a>  COMPOSITIONUPDATE: &#39;compositionupdate&#39;,
<a name="line150"></a>  COMPOSITIONEND: &#39;compositionend&#39;
<a name="line151"></a>};
</pre>


</body>
</html>
